﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Mvc4TwitterBootstrap.Models
{
    public class PersonModel
    {
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Vorname")]
        public string Vorname { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Nachname")]
        public string Nachname { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Ort")]
        public String Ort { get; set; }
    }

    public class PersonenModel
    {
        [Display(Name = "Personen")]
        public IEnumerable<PersonModel> Personen { get; set; }
    }
}